package com.nuaa.yupicturebackend.service;

import com.nuaa.yupicturebackend.model.dto.comment.CommentAddRequest;
import com.nuaa.yupicturebackend.model.entity.Comment;
import com.nuaa.yupicturebackend.model.vo.CommentVO;

import java.util.List;

public interface CommentService {
	/**
	 * 获取图片的评论
	 */
	List<CommentVO> getRootCommentsByImage(Long pictureId);

	/**
	 * 搜索评论
	 */
	List<Comment> searchComments(String keyword);

	/**
	 * 保存评论
	 */
	Boolean saveComment(CommentAddRequest commentAddRequest);

	Boolean deleteComment(Integer commentId);
}
